import React from 'react'
import {Routes, Route,Navigate} from 'react-router-dom'

import Login from './components/Login'
import Main from './components/Main'
import NotFount from './components/404'


export default function App() {
  return (
    <div>
      <Routes>
        <Route path='/login' element={<Login />} />
        <Route path='/main' element={<Main />} />
        {/* <Route path='/' element={<Navigate to='/login' />}/>
         */}
         <Route path='/' element={<Navigate to="main"/>}/>
        <Route path='*' element={<NotFount/>}/>
      </Routes>
    </div>
    
  )
}
